import request from "@/utils/request";

export function laborrelationsList(data) {
  return request({
    url: `/system/labor/relation/pageList?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: "post",
    data,
  });
}

export function saveLaborRelation(data) {
  console.log(data, "data");
  return request({
    url: `/system/labor/relation/saveLaborRelation`,
    method: "post",
    data,
  });
}

export function saveLaborRelationDetails(id) {
  console.log(id, "data");
  return request({
    url: `/system/labor/relation/getLaborRelationDetail?laborId=${id}`,
    method: "get",
  });
}
